import {RouteConfig} from 'react-router-config';
import {LayoutEnum} from "@/enums/LayoutEnum";

export type IRouteConfig = RouteConfig & {
    needAuth?: boolean
    pageType?: LayoutEnum
    title: string
}
const basicRoute = []
const needAuthRoute = [
    {
        path: '/home',
        name: 'Home',
        component: '/Home',
        needAuth: true,
        pageType: LayoutEnum.LAYOUT,
        title: '首页',
        hidden: false
    },
]
const baseRoute: IRouteConfig[] = [].concat(needAuthRoute, basicRoute)
export {
    baseRoute
}
